#!/usr/bin/python3.8.9
# -*- coding: utf-8 -*-

# @Author  : Tina Yu
# @Time    : 2021-7-21 21:28
from review.basic.lesson_11.name_function import get_formatted_name

print("Enter 'q' at any time to quit.")

while True:
    first = input("\n请输入您的姓：")
    if first == 'q':
        break
    last = input("请输入您的名字：")
    if first == 'q':
        break

    formatted_name = get_formatted_name(first, last)
    print(f'您输入的简洁名称为：{formatted_name}')
